#ifndef ST_ONESTUDENTINFO_H
#define ST_ONESTUDENTINFO_H

#include <QWidget>

namespace Ui {
class ST_OneStudentInfo;
}

class ST_OneStudentInfo : public QWidget
{
    Q_OBJECT

public:
    explicit ST_OneStudentInfo(QWidget *parent = nullptr);
    ~ST_OneStudentInfo();

    void setDataFromID(int id);

    void setInfoToLabel(const DB_View_StudentInfo& info);

    void setDataToTable(const QList<DB_View_StudentGrades>& data);

private slots:
    void on_pushButton_clicked();

private:
    Ui::ST_OneStudentInfo *ui;

    // QWidget interface
protected:
    virtual void showEvent(QShowEvent *event) override;
};

#endif // ST_ONESTUDENTINFO_H
